package com.douya.mvc.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * 缓存注解
 *
 * @Author hcy
 * @Date 2024/4/2  15:26
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {

    long expireTime() default 5;

    TimeUnit timeUnit() default TimeUnit.MINUTES;

}